#!/bin/bash
source ~/command/common

if [ "$1" = "-h" ];then
    echo "Usage:"
    echo "  xv 设置缺少的vue-cli-service"
else
    if ! [ -a node_modules/@vue/cli-service/bin/vue-cli-service.js ];then
        echo echo "请执行xs_xx的web工程"
        exit
    fi
    cd node_modules/.bin
    rm -f vue-cli-service
    echo ln -s ../@vue/cli-service/bin/vue-cli-service.js vue-cli-service
    ln -s ../@vue/cli-service/bin/vue-cli-service.js vue-cli-service
    echo "设置 vue-cli-service 成功"
fi
